<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心</title>
<link type="text/css" rel="stylesheet" href="<?php echo $this->_var['css_path']; ?>/css.css"/>
<link type="text/css" rel="stylesheet" href="<?php echo $this->_var['css_path']; ?>/global.css"/>
<link rel="stylesheet" href="<?php echo $this->_var['css_path']; ?>/powerFloat.css" type="text/css" />
</head>
<body>
<?php echo $this->fetch('header.html'); ?>
<div id="wrapper">
  <div id="content">
    <div id="con_le"><?php echo $this->fetch('user_nav.html'); ?> 
    </div>
    
    <div id="con_box">
      <div class="Current"><?php echo $this->_var['position']; ?></div>
      <div class="con_top"> <?php echo $this->fetch('user_common_detail.html'); ?>
        <div class="clear"></div>
      </div>
      <div id="user_content"> <?php echo $this->fetch('message.html'); ?>
        <form name="myform" action="<?php echo $this->_var['site_url']; ?>user/base/contact" method="post" id="myform">
          <fieldset>
            <legend>修改密码</legend>
            <table width="100%" class="table_form">
              <tr class='q_title'>
                <th>旧的登录密码：</th>
                <td class='input'><input  id='oldpassword' class='text small' type='password' name='oldpassword' style="width:200px"/></td>
              </tr>
              <tr class='q_title'>
                <th>新密码：</th>
                <td class='input'><input  id='password' class='text small' type='password' name='password' style="width:200px"/></td>
              </tr>
              <tr class='q_title'>
                <th>再次输入：</th>
                <td class='input'><input  id='confim_password' class='text small' type='password' name='confim_password' style="width:200px"/></td>
              </tr>
              <tr align="center">
                <td colspan="2" style="text-align:center"><input type="submit" class="button-blue" value="提 交"></td>
              </tr>
            </table>
          </fieldset>
        </form>
      </div>
    </div>
    
    <div class="clear"></div>
  </div>
   
</div>
<?php echo $this->fetch('footer.html'); ?>
<?php echo $this->fetch('hidden_div.html'); ?> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/jquery.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/jquery-powerFloat.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/jquery.pngfix.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/scrolltopcontrol.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/myfloat.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/jquery.validate.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/message.js"></script> 
<script type="text/javascript" src="<?php echo $this->_var['js_path']; ?>/user.js"></script> 
<script>
$(function(){

	//验证用户输入
	 $(function(){
		$("#myform").validate({
                    rules: {
                        password: {
                            required: true,
                            minlength: 6,
                            maxlength:20
                        },
                        confim_password: {
                            required: true,
                            minlength: 6,
                            maxlength:20,
                            equalTo: "#password"
                        },
                        oldpassword: {
                            required: true,
                            minlength: 6,
                            maxlength:20
                        }
                    },
                    messages: {
                        password: {
                            required: "*密码不能为空!",
                            minlength: "*必须大于6位小于20位!",
                            maxlength: "*必须大于6位小于20位!"
                        },
                        confim_password: {
                            required: "*密码确认不能为空",
                            minlength: "*必须大于6位小于20位!",
                            maxlength: "*必须大于6位小于20位!",
                            equalTo: "*和密码不一致!"
                        },
                        oldpassword: {
                            required: "*密码确认不能为空",
                            minlength: "*必须大于6位小于20位!",
                            maxlength: "*必须大于6位小于20位!",
                            equalTo: "*和密码不一致!"
                        }
                    }
                });
	})
});
</script>
</body>
</html>
